package cn.fl.capital.service;

import cmm.mid.core.framework.page.Pager;
import cn.cmm.base.framework.exception.BaseException;
import cn.fl.capital.condition.CapOverdueInfoQueryCondition;
import cn.fl.capital.vo.CapOverdueInfoVO;

import java.util.List;

/**
 * @Description: 逾期信息表 客户端服务层接口
 * 业务层方法名称前缀：
 * 新增：add*
 * 删除：remove*
 * 修改：modify*
 * 批量：batch*
 * 查询对象：select* get*
 * 查询集合：search*
 */
public interface ICapOverdueInfoService {
	
	/**
	 * 获取唯一对象
	 * @param id 主键
	 * @return 对象DTO
	 */
	public CapOverdueInfoVO selectById(Long id) throws BaseException;
	
	/**
	 * 新增
	 * @param entity
	 * @return
	 */
    public Long add(CapOverdueInfoVO entity) throws BaseException;
    
    /**
     * 批量删除
     * @param ids
     * @return
     */
    public boolean removeByIds(List<Long> ids) throws BaseException;

    /**
     * 修改
     * @param entity
     * @return
     */
    public boolean modify(CapOverdueInfoVO entity) throws BaseException;

    /**
     * 分页查询所有
     * @param page
     * @return
     */
    public Pager searchListPage(Pager page) throws BaseException;

    /*******************************
     * 查询客户逾期支付表数据
     * @param condition
     * @return
     * @throws BaseException
     *******************************/
    public List<CapOverdueInfoVO> searchOvdPayList(CapOverdueInfoQueryCondition condition) throws BaseException;

    /*******************************
     * 查询客户支付表逾期明细
     * @param condition
     * @return
     * @throws BaseException
     *******************************/
    public List<CapOverdueInfoVO> searchOvdDtlList(CapOverdueInfoQueryCondition condition) throws BaseException;

    /*******************************
     * 查询客户支付表逾期明细 分页
     * @param page
     * @return
     * @throws BaseException
     *******************************/
    public Pager searchOvdDtlListPage(Pager page) throws BaseException;

    /*******************************
     * 减免罚息，查询客户支付表逾期明细
     * @param condition
     * @return
     * @throws BaseException
     *******************************/
    public List<CapOverdueInfoVO> searchPayDtlList(CapOverdueInfoQueryCondition condition) throws BaseException;

    /**
     * 根据条件查询所有
     * @param condition
     * @return
     */
    public List<CapOverdueInfoVO> searchList(CapOverdueInfoQueryCondition condition) throws BaseException;

    /**
     * 导出逾期查询
     * @param condition
     * @return
     */
    public List<CapOverdueInfoVO> searchOverdueList(CapOverdueInfoQueryCondition condition) throws BaseException;

    /**
     * 逾期明细查询
     * @param condition
     * @return
     * @throws BaseException
     */
    public List<CapOverdueInfoVO> searchDtlList(CapOverdueInfoQueryCondition condition) throws BaseException;

    /*******************************
     * 逾期催收，查询客户支付表逾期明细（支付表状态+预约时间）
     * @param condition
     * @return
     * @throws BaseException
     *******************************/
    public List<CapOverdueInfoVO> searchOvdPayDtlList(CapOverdueInfoQueryCondition condition) throws BaseException;

    /**
     * 逾期计算
     * @param condition
     * @return
     * @throws BaseException
     */
    public boolean addOvdInfo(CapOverdueInfoQueryCondition condition) throws BaseException;

    /**
     * 计算客户应付金额
     * @param condition
     * @return
     * @throws BaseException
     */
    public CapOverdueInfoVO calcCstOvdAmt(CapOverdueInfoQueryCondition condition) throws BaseException;

    /*******************************
     * 逾期催收，查询客户支付表逾期明细（支付表状态+预约时间）
     * @param condition
     * @return
     * @throws BaseException
     * @author jiangzg 2017-8-11 10:58:29
     *******************************/
    public List<CapOverdueInfoVO> searchMyOvdPayDtlList(CapOverdueInfoQueryCondition condition) throws BaseException;

    /**
     * 小贷逾期历史计算
     * @param condition
     * @return
     * @throws BaseException
     */
    public void calcMcrCapOverdueHis(CapOverdueInfoQueryCondition condition) throws BaseException;
}
